home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
ai.prl
/
opnprlg1.hqx
/
Open Prolog
/
Open Prolog.rsrc
/
CODE_9_subroutines.txt
< prev
next >
Wrap
Text File
|
1993-04-15
|
48KB
|
868 lines
# near model CODE resource
# entry label at 0x0000
export_286:
entry:
00000000 4E54 0000 link A4, 0
00000004 48E7 0702 movem.l -[A7], D5,D6,D7,A6
00000008 2C6C 0008 movea.l A6, [A4 + 0x8]
label0000000C:
0000000C 3E1E move.w D7, [A6]+
0000000E 6700 006E beq +0x70 /* 0000007E */
00000012 6B00 006A bmi +0x6C /* 0000007E */
00000016 42A7 clr.l -[A7]
00000018 3F07 move.w -[A7], D7
0000001A A9BF trap GetRMenu
0000001C 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000020 6708 beq +0xA /* 0000002A */
00000022 487A 006A pea.l [PC + 0x6A /* 0000008E */]
00000026 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000002A:
0000002A 548F addq.l A7, 2
0000002C 2A1F move.l D5, [A7]+
0000002E 3C1E move.w D6, [A6]+
00000030 6718 beq +0x1A /* 0000004A */
00000032 2F05 move.l -[A7], D5
00000034 3F06 move.w -[A7], D6
00000036 A93A trap DisableItem
00000038 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
0000003C 6708 beq +0xA /* 00000046 */
0000003E 487A 004E pea.l [PC + 0x4E /* 0000008E */]
00000042 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000046:
00000046 548F addq.l A7, 2
00000048 60C2 bra -0x3C /* 0000000C */
label0000004A:
0000004A 4267 clr.w -[A7]
0000004C 2F05 move.l -[A7], D5
0000004E A950 trap CountMItems
00000050 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000054 6708 beq +0xA /* 0000005E */
00000056 487A 0036 pea.l [PC + 0x36 /* 0000008E */]
0000005A 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000005E:
0000005E 548F addq.l A7, 2
00000060 3C1F move.w D6, [A7]+
label00000062:
00000062 2F05 move.l -[A7], D5
00000064 3F06 move.w -[A7], D6
00000066 A93A trap DisableItem
00000068 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
0000006C 6708 beq +0xA /* 00000076 */
0000006E 487A 001E pea.l [PC + 0x1E /* 0000008E */]
00000072 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000076:
00000076 548F addq.l A7, 2
00000078 5346 subq.w D6, 1
0000007A 66E6 bne -0x18 /* 00000062 */
0000007C 608E bra -0x70 /* 0000000C */
label0000007E:
0000007E 4CDF 40E0 movem.l A6,D7,D6,D5, [A7]+
00000082 4E5C unlink A4
00000084 2F57 0004 move.l [A7 + 0x4], [A7]
00000088 4FEF 0004 lea.l A7, [A7 + 0x4]
0000008C 4E75 rts
0000008E 8C44 or.w D6, D4
00000090 4953 chk.w D4, [A3]
00000092 4142 chk.w D0, D2
00000094 4C45 4D45 movem.l A6,A3,A2,A0,D6,D2,D0, D5
00000098 4E55 5320 link A5, -0xFFFFACE0
0000009C 0000 4E54 ori.b D0, 0x54 /* 'T' */
export_287: // at 0000009E (misaligned)
000000A0 0000 48E7 ori.b D0, 0xE7
000000A4 0702 btst D2, D3
000000A6 2C6C 0008 movea.l A6, [A4 + 0x8]
label000000AA:
000000AA 3E1E move.w D7, [A6]+
000000AC 6700 0086 beq +0x88 /* 00000134 */
000000B0 6B00 0082 bmi +0x84 /* 00000134 */
000000B4 42A7 clr.l -[A7]
000000B6 3F07 move.w -[A7], D7
000000B8 A9BF trap GetRMenu
000000BA 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000000BE 6708 beq +0xA /* 000000C8 */
000000C0 487A 0082 pea.l [PC + 0x82 /* 00000144 */]
000000C4 4EAD 0CD2 jsr [A5 + 0xCD2]
label000000C8:
000000C8 548F addq.l A7, 2
000000CA 2A1F move.l D5, [A7]+
000000CC 2F05 move.l -[A7], D5
000000CE 4267 clr.w -[A7]
000000D0 A939 trap EnableItem
000000D2 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000000D6 6708 beq +0xA /* 000000E0 */
000000D8 487A 006A pea.l [PC + 0x6A /* 00000144 */]
000000DC 4EAD 0CD2 jsr [A5 + 0xCD2]
label000000E0:
000000E0 548F addq.l A7, 2
000000E2 3C1E move.w D6, [A6]+
000000E4 6718 beq +0x1A /* 000000FE */
000000E6 2F05 move.l -[A7], D5
000000E8 3F06 move.w -[A7], D6
000000EA A939 trap EnableItem
000000EC 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000000F0 6708 beq +0xA /* 000000FA */
000000F2 487A 0050 pea.l [PC + 0x50 /* 00000144 */]
000000F6 4EAD 0CD2 jsr [A5 + 0xCD2]
label000000FA:
000000FA 548F addq.l A7, 2
000000FC 60AC bra -0x52 /* 000000AA */
label000000FE:
000000FE 4267 clr.w -[A7]
00000100 2F05 move.l -[A7], D5
00000102 A950 trap CountMItems
00000104 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000108 6708 beq +0xA /* 00000112 */
0000010A 487A 0038 pea.l [PC + 0x38 /* 00000144 */]
0000010E 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000112:
00000112 548F addq.l A7, 2
00000114 3C1F move.w D6, [A7]+
label00000116:
00000116 2F05 move.l -[A7], D5
00000118 3F06 move.w -[A7], D6
0000011A A939 trap EnableItem
0000011C 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000120 6708 beq +0xA /* 0000012A */
00000122 487A 0020 pea.l [PC + 0x20 /* 00000144 */]
00000126 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000012A:
0000012A 548F addq.l A7, 2
0000012C 5346 subq.w D6, 1
0000012E 66E6 bne -0x18 /* 00000116 */
00000130 6000 FF78 bra -0x86 /* 000000AA */
label00000134:
00000134 4CDF 40E0 movem.l A6,D7,D6,D5, [A7]+
00000138 4E5C unlink A4
0000013A 2F57 0004 move.l [A7 + 0x4], [A7]
0000013E 4FEF 0004 lea.l A7, [A7 + 0x4]
00000142 4E75 rts
00000144 8B45 4E41 pack D5, D5, 0x4E41
00000148 424C clr.w A4
0000014A 454D chk.w D2, A5
0000014C 454E chk.w D2, A6
0000014E 5553 subq.w [A3], 2
00000150 0000 48E7 ori.b D0, 0xE7
export_288: // at 00000152 (misaligned)
00000154 00C0 ori.? D0, 0xFFFFFFFFFFFFFFFF
00000156 206F 000C movea.l A0, [A7 + 0xC]
0000015A 2068 023C movea.l A0, [A0 + 0x23C]
0000015E 226F 0010 movea.l A1, [A7 + 0x10]
00000162 2050 movea.l A0, [A0]
00000164 22E8 0008 move.l [A1]+, [A0 + 0x8]
00000168 22A8 000C move.l [A1], [A0 + 0xC]
0000016C 206F 000C movea.l A0, [A7 + 0xC]
00000170 2068 023C movea.l A0, [A0 + 0x23C]
00000174 4CDF 0300 movem.l A1,A0, [A7]+
00000178 2E9F move.l [A7], [A7]+
0000017A 4E75 rts
0000017C 8C50 or.w D6, [A0]
0000017E 5553 subq.w [A3], 2
00000180 4856 pea.l [A6]
00000182 4945 chk.w D4, D5
00000184 5752 subq.w [A2], 3
00000186 4543 chk.w D2, D3
00000188 5420 addq.b -[A0], 2
0000018A 0000 4E54 ori.b D0, 0x54 /* 'T' */
export_289: // at 0000018C (misaligned)
0000018E 0000 48E7 ori.b D0, 0xE7
00000192 F800 .extension 0x800 // unimplemented
00000194 202C 0008 move.l D0, [A4 + 0x8]
00000198 222C 000C move.l D1, [A4 + 0xC]
0000019C 2401 move.l D2, D1
0000019E C4C0 mulu.w D2, D0
000001A0 2942 0014 move.l [A4 + 0x14], D2
000001A4 2400 move.l D2, D0
000001A6 2601 move.l D3, D1
000001A8 4842 swap.w D2
000001AA 4843 swap.w D3
000001AC C6C2 mulu.w D3, D2
000001AE 2943 0010 move.l [A4 + 0x10], D3
000001B2 2601 move.l D3, D1
000001B4 C6C2 mulu.w D3, D2
000001B6 2801 move.l D4, D1
000001B8 4844 swap.w D4
000001BA C8C0 mulu.w D4, D0
000001BC 7000 moveq.l D0, 0x00
000001BE 7200 moveq.l D1, 0x00
000001C0 D883 add.l D4, D3
000001C2 D141 addx.w D0, D1
000001C4 D9AC 0012 add.l [A4 + 0x12], D4
000001C8 D141 addx.w D0, D1
000001CA D16C 0010 add.w [A4 + 0x10], D0
000001CE 4CDF 001F movem.l D4,D3,D2,D1,D0, [A7]+
000001D2 4E5C unlink A4
000001D4 2F57 0008 move.l [A7 + 0x8], [A7]
000001D8 4FEF 0008 lea.l A7, [A7 + 0x8]
000001DC 4E75 rts
000001DE 884C or.w D4, A4
000001E0 4F4E chk.w D7, A6
000001E2 474D chk.w D3, A5
000001E4 554C subq.w A4, 2
000001E6 5420 addq.b -[A0], 2
000001E8 0000 4E56 ori.b D0, 0x56 /* 'V' */
// begin alternate branch 000001EA-000001F2
export_290:
fn000001EA:
000001EA 4E56 0000 link A6, 0
000001EE 48E7 E0C0 movem.l -[A7], D0,D1,D2,A0,A1
// end alternate branch 000001EA-000001F2
export_290: // at 000001EA (misaligned)
fn000001EA: // (misaligned)
000001EC 0000 48E7 ori.b D0, 0xE7
000001F0 E0C0 asr .w D0
000001F2 226E 0008 movea.l A1, [A6 + 0x8]
000001F6 7000 moveq.l D0, 0x00
000001F8 1029 0248 move.b D0, [A1 + 0x248]
000001FC 6718 beq +0x1A /* 00000216 */
000001FE 137C 0001 03A4 move.b [A1 + 0x3A4], 0x1
00000204 4229 0248 clr.b [A1 + 0x248]
00000208 4869 0249 pea.l [A1 + 0x249]
0000020C 2F00 move.l -[A7], D0
0000020E 2F29 023C move.l -[A7], [A1 + 0x23C]
00000212 4EAD 0B52 jsr [A5 + 0xB52]
label00000216:
00000216 4CDF 0307 movem.l A1,A0,D2,D1,D0, [A7]+
0000021A 4E5E unlink A6
0000021C 2F57 0004 move.l [A7 + 0x4], [A7]
00000220 4FEF 0004 lea.l A7, [A7 + 0x4]
00000224 4E75 rts
00000226 9A53 sub.w D5, [A3]
00000228 5441 addq.w D1, 2
0000022A 4E44 trap 4
0000022C 4152 chk.w D0, [A2]
0000022E 4457 neg.w [A7]
00000230 494E chk.w D4, A6
00000232 444F neg.w A7
00000234 5744 subq.w D4, 3
00000236 4953 chk.w D4, [A3]
00000238 504C addq.w A4, 8
0000023A 4159 chk.w D0, [A1]+
0000023C 464C not.w A4
0000023E 5553 subq.w [A3], 2
00000240 4820 nbcd.b -[A0]
00000242 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_291: // at 00000244 (misaligned)
00000246 0000 48E7 ori.b D0, 0xE7
0000024A E0C0 asr .w D0
0000024C 226E 0008 movea.l A1, [A6 + 0x8]
00000250 0C29 00FF 0248 cmpi.b [A1 + 0x248], 0xFF
00000256 6628 bne +0x2A /* 00000280 */
00000258 2F09 move.l -[A7], A1
0000025A 4EBA FF8E jsr [PC - 0x72 /* 000001EA */]
0000025E 1F3C 0001 move.b -[A7], 0x1
00000262 4227 clr.b -[A7]
00000264 226E 0008 movea.l A1, [A6 + 0x8]
00000268 2F29 023C move.l -[A7], [A1 + 0x23C]
0000026C 4EAD 0C22 jsr [A5 + 0xC22]
00000270 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000274 6708 beq +0xA /* 0000027E */
00000276 487A 0062 pea.l [PC + 0x62 /* 000002DA */]
0000027A 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000027E:
0000027E 548F addq.l A7, 2
label00000280:
00000280 226E 0008 movea.l A1, [A6 + 0x8]
00000284 08E9 0000 0390 bset.b [A1 + 0x390], 0x0
0000028A 7200 moveq.l D1, 0x00
0000028C 41E9 0248 lea.l A0, [A1 + 0x248]
00000290 1210 move.b D1, [A0]
00000292 11AE 000F 1801 move.b [A0 + D1 + 0x1], [A6 + 0xF]
00000298 5210 addq.b [A0], 1
0000029A 0C2E 000D 000F cmpi.b [A6 + 0xF], 0xD /* '\r' */
000002A0 6628 bne +0x2A /* 000002CA */
000002A2 2F09 move.l -[A7], A1
000002A4 4EBA FF44 jsr [PC - 0xBC /* 000001EA */]
000002A8 1F3C 0001 move.b -[A7], 0x1
000002AC 4227 clr.b -[A7]
000002AE 226E 0008 movea.l A1, [A6 + 0x8]
000002B2 2F29 023C move.l -[A7], [A1 + 0x23C]
000002B6 4EAD 0C22 jsr [A5 + 0xC22]
000002BA 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000002BE 6708 beq +0xA /* 000002C8 */
000002C0 487A 0018 pea.l [PC + 0x18 /* 000002DA */]
000002C4 4EAD 0CD2 jsr [A5 + 0xCD2]
label000002C8:
000002C8 548F addq.l A7, 2
label000002CA:
000002CA 4CDF 0307 movem.l A1,A0,D2,D1,D0, [A7]+
000002CE 4E5E unlink A6
000002D0 2F57 0008 move.l [A7 + 0x8], [A7]
000002D4 4FEF 0008 lea.l A7, [A7 + 0x8]
000002D8 4E75 rts
000002DA 9953 sub.w [A3], D4
000002DC 5441 addq.w D1, 2
000002DE 4E44 trap 4
000002E0 4152 chk.w D0, [A2]
000002E2 4457 neg.w [A7]
000002E4 494E chk.w D4, A6
000002E6 444F neg.w A7
000002E8 5744 subq.w D4, 3
000002EA 4953 chk.w D4, [A3]
000002EC 504C addq.w A4, 8
000002EE 4159 chk.w D0, [A1]+
000002F0 4348 chk.w D1, A0
000002F2 4152 chk.w D0, [A2]
000002F4 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_292: // at 000002F6 (misaligned)
000002F8 0000 48E7 ori.b D0, 0xE7
000002FC E0C0 asr .w D0
000002FE 206E 000C movea.l A0, [A6 + 0xC]
00000302 7000 moveq.l D0, 0x00
00000304 3018 move.w D0, [A0]+
00000306 6700 00A2 beq +0xA4 /* 000003AA */
0000030A 226E 0008 movea.l A1, [A6 + 0x8]
0000030E 7200 moveq.l D1, 0x00
00000310 1229 0248 move.b D1, [A1 + 0x248]
00000314 D240 add.w D1, D0
00000316 0C41 0100 cmpi.w D1, 0x100
0000031A 6B00 002A bmi +0x2C /* 00000346 */
0000031E 2F09 move.l -[A7], A1
00000320 4EBA FEC8 jsr [PC - 0x138 /* 000001EA */]
00000324 1F3C 0001 move.b -[A7], 0x1
00000328 4227 clr.b -[A7]
0000032A 226E 0008 movea.l A1, [A6 + 0x8]
0000032E 2F29 023C move.l -[A7], [A1 + 0x23C]
00000332 4EAD 0C22 jsr [A5 + 0xC22]
00000336 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
0000033A 6708 beq +0xA /* 00000344 */
0000033C 487A 0086 pea.l [PC + 0x86 /* 000003C4 */]
00000340 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000344:
00000344 548F addq.l A7, 2
label00000346:
00000346 206E 000C movea.l A0, [A6 + 0xC]
0000034A 7000 moveq.l D0, 0x00
0000034C 3018 move.w D0, [A0]+
0000034E 226E 0008 movea.l A1, [A6 + 0x8]
00000352 7200 moveq.l D1, 0x00
00000354 1229 0248 move.b D1, [A1 + 0x248]
00000358 3401 move.w D2, D1
0000035A D200 add.b D1, D0
0000035C 1341 0248 move.b [A1 + 0x248], D1
00000360 43E9 0248 lea.l A1, [A1 + 0x248]
00000364 43F1 2001 lea.l A1, [A1 + D2.w + 0x1]
00000368 5340 subq.w D0, 1
0000036A 720D moveq.l D1, 0x0D
0000036C 4203 clr.b D3
label0000036E:
0000036E 1418 move.b D2, [A0]+
00000370 12C2 move.b [A1]+, D2
00000372 B401 cmp.b D2, D1
00000374 57C3 seq D3
00000376 51C8 FFF6 dbf D0, -0xC /* 0000036E */
0000037A 4A03 tst.b D3
0000037C 672C beq +0x2E /* 000003AA */
0000037E 226E 0008 movea.l A1, [A6 + 0x8]
00000382 2F09 move.l -[A7], A1
00000384 4EBA FE64 jsr [PC - 0x19C /* 000001EA */]
00000388 1F3C 0001 move.b -[A7], 0x1
0000038C 4227 clr.b -[A7]
0000038E 226E 0008 movea.l A1, [A6 + 0x8]
00000392 2F29 023C move.l -[A7], [A1 + 0x23C]
00000396 4EAD 0C22 jsr [A5 + 0xC22]
0000039A 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
0000039E 6708 beq +0xA /* 000003A8 */
000003A0 487A 0022 pea.l [PC + 0x22 /* 000003C4 */]
000003A4 4EAD 0CD2 jsr [A5 + 0xCD2]
label000003A8:
000003A8 548F addq.l A7, 2
label000003AA:
000003AA 226E 0008 movea.l A1, [A6 + 0x8]
000003AE 08E9 0000 0390 bset.b [A1 + 0x390], 0x0
000003B4 4CDF 0307 movem.l A1,A0,D2,D1,D0, [A7]+
000003B8 4E5E unlink A6
000003BA 2F57 0008 move.l [A7 + 0x8], [A7]
000003BE 4FEF 0008 lea.l A7, [A7 + 0x8]
000003C2 4E75 rts
000003C4 9953 sub.w [A3], D4
000003C6 5441 addq.w D1, 2
000003C8 4E44 trap 4
000003CA 4152 chk.w D0, [A2]
000003CC 4457 neg.w [A7]
000003CE 494E chk.w D4, A6
000003D0 444F neg.w A7
000003D2 5744 subq.w D4, 3
000003D4 4953 chk.w D4, [A3]
000003D6 504C addq.w A4, 8
000003D8 4159 chk.w D0, [A1]+
000003DA 5445 addq.w D5, 2
000003DC 5854 addq.w [A4], 4
000003DE 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_293: // at 000003E0 (misaligned)
000003E2 FFFE .extension 0xFFE // unimplemented
000003E4 48E7 7000 movem.l -[A7], D1,D2,D3
000003E8 206E 000A movea.l A0, [A6 + 0xA]
000003EC 203C FFFF 8000 move.l D0, 0xFFFF8000
000003F2 426E FFFE clr.w [A6 - 0x2]
000003F6 7200 moveq.l D1, 0x00
000003F8 1418 move.b D2, [A0]+
000003FA 6770 beq +0x72 /* 0000046C */
000003FC 1218 move.b D1, [A0]+
000003FE 0C01 002B cmpi.b D1, 0x2B /* '+' */
00000402 670C beq +0xE /* 00000410 */
00000404 0C01 002D cmpi.b D1, 0x2D /* '-' */
00000408 660C bne +0xE /* 00000416 */
0000040A 3D7C FFFF FFFE move.w [A6 - 0x2], 0xFFFF
label00000410:
00000410 5302 subq.b D2, 1
00000412 6612 bne +0x14 /* 00000426 */
00000414 6056 bra +0x58 /* 0000046C */
label00000416:
00000416 2001 move.l D0, D1
00000418 0200 000F andi.b D0, 0xF
0000041C B06E 0008 cmp.w D0, [A6 + 0x8]
00000420 6A36 bpl +0x38 /* 00000458 */
00000422 5302 subq.b D2, 1
00000424 6726 beq +0x28 /* 0000044C */
label00000426:
00000426 1218 move.b D1, [A0]+
00000428 382E 0008 move.w D4, [A6 + 0x8]
0000042C 5544 subq.w D4, 2
0000042E 6B28 bmi +0x2A /* 00000458 */
00000430 2600 move.l D3, D0
label00000432:
00000432 D680 add.l D3, D0
00000434 55CC FFFC dbcs D4, -0x6 /* 00000432 */
00000438 651E bcs +0x20 /* 00000458 */
0000043A 2003 move.l D0, D3
0000043C 0201 000F andi.b D1, 0xF
00000440 B26E 0008 cmp.w D1, [A6 + 0x8]
00000444 6A12 bpl +0x14 /* 00000458 */
00000446 D081 add.l D0, D1
00000448 5302 subq.b D2, 1
0000044A 66DA bne -0x24 /* 00000426 */
label0000044C:
0000044C 4A6E FFFE tst.w [A6 - 0x2]
00000450 660E bne +0x10 /* 00000460 */
00000452 2D40 000E move.l [A6 + 0xE], D0
00000456 6A12 bpl +0x14 /* 0000046A */
label00000458:
00000458 203C FFFF 8002 move.l D0, 0xFFFF8002
0000045E 600C bra +0xE /* 0000046C */
label00000460:
00000460 4480 neg.l D0
00000462 2D40 000E move.l [A6 + 0xE], D0
00000466 6702 beq +0x4 /* 0000046A */
00000468 6AEE bpl -0x10 /* 00000458 */
label0000046A:
0000046A 7000 moveq.l D0, 0x00
label0000046C:
0000046C 4CDF 000E movem.l D3,D2,D1, [A7]+
00000470 4E5E unlink A6
00000472 2F57 0006 move.l [A7 + 0x6], [A7]
00000476 4FEF 0006 lea.l A7, [A7 + 0x6]
0000047A 4A80 tst.l D0
0000047C 4E75 rts
0000047E 8D4D 5953 pack -[A6], -[A5], 0x5953
00000482 5452 addq.w [A2], 2
00000484 494E chk.w D4, A6
00000486 4754 chk.w D3, [A4]
00000488 4F4E chk.w D7, A6
0000048A 554D subq.w A5, 2
0000048C 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_294: // at 0000048E (misaligned)
00000490 FFF8 .extension 0xFF8 // unimplemented
00000492 4FEF FFFE lea.l A7, [A7 - 0x2]
00000496 2F2D E85C move.l -[A7], [A5 - 0x17A4]
0000049A 206E 000E movea.l A0, [A6 + 0xE]
0000049E 2268 023C movea.l A1, [A0 + 0x23C]
000004A2 2251 movea.l A1, [A1]
000004A4 2D69 0008 FFF8 move.l [A6 - 0x8], [A1 + 0x8]
000004AA 2D69 000C FFFC move.l [A6 - 0x4], [A1 + 0xC]
000004B0 426E FFFA clr.w [A6 - 0x6]
000004B4 486E FFF8 pea.l [A6 - 0x8]
000004B8 A8AD trap PtInRect
000004BA 301F move.w D0, [A7]+
000004BC 0800 0008 btst.b D0, 0x8
000004C0 676A beq +0x6C /* 0000052C */
000004C2 2F2E 000A move.l -[A7], [A6 + 0xA]
000004C6 3F2D E92C move.w -[A7], [A5 - 0x16D4]
000004CA 1F3C 0001 move.b -[A7], 0x1
000004CE 206E 000E movea.l A0, [A6 + 0xE]
000004D2 08E8 0000 03A2 bset.b [A0 + 0x3A2], 0x0
000004D8 661A bne +0x1C /* 000004F4 */
000004DA 0828 0000 03A3 btst.b [A0 + 0x3A3], 0x0
000004E0 6712 beq +0x14 /* 000004F4 */
000004E2 2268 023C movea.l A1, [A0 + 0x23C]
000004E6 2251 movea.l A1, [A1]
000004E8 3029 0020 move.w D0, [A1 + 0x20]
000004EC 9068 039A sub.w D0, [A0 + 0x39A]
000004F0 3140 03A0 move.w [A0 + 0x3A0], D0
label000004F4:
000004F4 2F28 023C move.l -[A7], [A0 + 0x23C]
000004F8 A813 trap TEAutoView
000004FA 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000004FE 6708 beq +0xA /* 00000508 */
00000500 487A 003E pea.l [PC + 0x3E /* 00000540 */]
00000504 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000508:
00000508 548F addq.l A7, 2
0000050A 206E 000E movea.l A0, [A6 + 0xE]
0000050E 2F28 023C move.l -[A7], [A0 + 0x23C]
00000512 A9D4 trap TEClick
00000514 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000518 6708 beq +0xA /* 00000522 */
0000051A 487A 0024 pea.l [PC + 0x24 /* 00000540 */]
0000051E 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000522:
00000522 548F addq.l A7, 2
00000524 2F2E 000E move.l -[A7], [A6 + 0xE]
00000528 4EAD 09AA jsr [A5 + 0x9AA]
label0000052C:
0000052C 2D7C 0000 0006 0012 move.l [A6 + 0x12], 0x6
00000534 4E5E unlink A6
00000536 2F57 000A move.l [A7 + 0xA], [A7]
0000053A 4FEF 000A lea.l A7, [A7 + 0xA]
0000053E 4E75 rts
00000540 8854 or.w D4, [A4]
00000542 4845 swap.w D5
00000544 434C chk.w D1, A4
00000546 4943 chk.w D4, D3
00000548 4B20 .invalid 5, -[A0] // invalid opcode 4 with b == 4
0000054A 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_295: // at 0000054C (misaligned)
0000054E 0000 48E7 ori.b D0, 0xE7
00000552 8080 or.l D0, D0
00000554 0240 00FF andi.w D0, 0xFF
00000558 D040 add.w D0, D0
0000055A 206D E95A movea.l A0, [A5 - 0x16A6]
0000055E 3D70 0000 0008 move.w [A6 + 0x8], [A0 + D0.w]
00000564 4CDF 0101 movem.l A0,D0, [A7]+
00000568 4E5E unlink A6
0000056A 4E75 rts
0000056C 9143 subx.w D0, D3
0000056E 4C41 5353 movem.l A6,A4,A1,A0,D6,D4,D1,D0, D1
00000572 4946 chk.w D4, D6
00000574 5943 subq.w D3, 4
00000576 4841 swap.w D1
00000578 5241 addq.w D1, 1
0000057A 4354 chk.w D1, [A4]
0000057C 4552 chk.w D2, [A2]
0000057E 0000 48E7 ori.b D0, 0xE7
export_296: // at 00000580 (misaligned)
00000582 8080 or.l D0, D0
00000584 0240 00FF andi.w D0, 0xFF
00000588 D040 add.w D0, D0
0000058A 206D E95A movea.l A0, [A5 - 0x16A6]
0000058E 0C30 0001 0000 cmpi.b [A0 + D0.w], 0x1
00000594 6704 beq +0x6 /* 0000059A */
00000596 003C 0001 ori.b ccr, 1
label0000059A:
0000059A 4CDF 0101 movem.l A0,D0, [A7]+
0000059E 4E75 rts
000005A0 8C41 or.w D6, D1
000005A2 4C50 4841 movem.l A6,A3,D6,D0, [A0]
000005A6 4E55 4D45 link A5, -0xFFFFB2BB
000005AA 5249 addq.w A1, 1
000005AC 4320 .invalid 1, -[A0] // invalid opcode 4 with b == 4
000005AE 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_297: // at 000005B0 (misaligned)
000005B2 FFF4 .extension 0xFF4 // unimplemented
000005B4 48E7 E0E0 movem.l -[A7], D0,D1,D2,A0,A1,A2
000005B8 246E 000A movea.l A2, [A6 + 0xA]
000005BC 4FEF FFFE lea.l A7, [A7 - 0x2]
000005C0 2F0A move.l -[A7], A2
000005C2 2F2D E85C move.l -[A7], [A5 - 0x17A4]
000005C6 3F2E 0008 move.w -[A7], [A6 + 0x8]
000005CA A83B trap TrackBox
000005CC 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000005D0 6708 beq +0xA /* 000005DA */
000005D2 487A 0062 pea.l [PC + 0x62 /* 00000636 */]
000005D6 4EAD 0CD2 jsr [A5 + 0xCD2]
label000005DA:
000005DA 548F addq.l A7, 2
000005DC 301F move.w D0, [A7]+
000005DE 6700 0046 beq +0x48 /* 00000626 */
000005E2 486E FFF4 pea.l [A6 - 0xC]
000005E6 A874 trap GetPort
000005E8 2F0A move.l -[A7], A2
000005EA A873 trap SetPort
000005EC 2F0A move.l -[A7], A2
000005EE 3F2E 0008 move.w -[A7], [A6 + 0x8]
000005F2 4EAD 0AC2 jsr [A5 + 0xAC2]
000005F6 2F0A move.l -[A7], A2
000005F8 4EAD 09C2 jsr [A5 + 0x9C2]
000005FC 2F0A move.l -[A7], A2
000005FE 4EAD 09B2 jsr [A5 + 0x9B2]
00000602 2F0A move.l -[A7], A2
00000604 4EAD 09AA jsr [A5 + 0x9AA]
00000608 206A 023C movea.l A0, [A2 + 0x23C]
0000060C 2050 movea.l A0, [A0]
0000060E 2D68 0008 FFF8 move.l [A6 - 0x8], [A0 + 0x8]
00000614 2D68 000C FFFC move.l [A6 - 0x4], [A0 + 0xC]
0000061A 486E FFF8 pea.l [A6 - 0x8]
0000061E A928 trap InvalRect
00000620 2F2E FFF4 move.l -[A7], [A6 - 0xC]
00000624 A873 trap SetPort
label00000626:
00000626 4CDF 0707 movem.l A2,A1,A0,D2,D1,D0, [A7]+
0000062A 4E5E unlink A6
0000062C 2F57 0006 move.l [A7 + 0x6], [A7]
00000630 4FEF 0006 lea.l A7, [A7 + 0x6]
00000634 4E75 rts
00000636 895A or.w [A2]+, D4
00000638 4F4F chk.w D7, A7
0000063A 4D53 chk.w D6, [A3]
0000063C 5455 addq.w [A5], 2
0000063E 4646 not.w D6
00000640 0000 48E7 ori.b D0, 0xE7
export_298: // at 00000642 (misaligned)
00000644 7080 moveq.l D0, 0xFFFFFF80
00000646 7000 moveq.l D0, 0x00
00000648 7200 moveq.l D1, 0x00
0000064A 7400 moveq.l D2, 0x00
0000064C 7600 moveq.l D3, 0x00
0000064E 1418 move.b D2, [A0]+
00000650 5282 addq.l D2, 1
label00000652:
00000652 5382 subq.l D2, 1
00000654 674C beq +0x4E /* 000006A2 */
00000656 1618 move.b D3, [A0]+
00000658 0C03 0021 cmpi.b D3, 0x21 /* '!' */
0000065C 65F4 bcs -0xA /* 00000652 */
0000065E 0C03 002B cmpi.b D3, 0x2B /* '+' */
00000662 671C beq +0x1E /* 00000680 */
00000664 0C03 002D cmpi.b D3, 0x2D /* '-' */
00000668 6714 beq +0x16 /* 0000067E */
0000066A 0C03 0030 cmpi.b D3, 0x30 /* '0' */
0000066E 6532 bcs +0x34 /* 000006A2 */
00000670 0C03 003A cmpi.b D3, 0x3A /* ':' */
00000674 642C bcc +0x2E /* 000006A2 */
00000676 1003 move.b D0, D3
00000678 0200 000F andi.b D0, 0xF
0000067C 6002 bra +0x4 /* 00000680 */
label0000067E:
0000067E 72FF moveq.l D1, 0xFFFFFFFF
label00000680:
00000680 5382 subq.l D2, 1
00000682 671E beq +0x20 /* 000006A2 */
00000684 1618 move.b D3, [A0]+
00000686 0C03 0030 cmpi.b D3, 0x30 /* '0' */
0000068A 6516 bcs +0x18 /* 000006A2 */
0000068C 0C03 003A cmpi.b D3, 0x3A /* ':' */
00000690 6410 bcc +0x12 /* 000006A2 */
00000692 0203 000F andi.b D3, 0xF
00000696 E388 lsl D0, 1
00000698 2800 move.l D4, D0
0000069A E588 lsl D0, 2
0000069C D084 add.l D0, D4
0000069E D083 add.l D0, D3
000006A0 60DE bra -0x20 /* 00000680 */
label000006A2:
000006A2 4A81 tst.l D1
000006A4 6702 beq +0x4 /* 000006A8 */
000006A6 4480 neg.l D0
label000006A8:
000006A8 4CDF 010E movem.l A0,D3,D2,D1, [A7]+
000006AC 4E75 rts
export_299:
000006AE 4E56 0000 link A6, 0
000006B2 48E7 F0C0 movem.l -[A7], D0,D1,D2,D3,A0,A1
000006B6 0C6D 0700 FDAC cmpi.w [A5 - 0x254], 0x700
000006BC 6400 005E bcc +0x60 /* 0000071C */
000006C0 206E 0008 movea.l A0, [A6 + 0x8]
000006C4 2F08 move.l -[A7], A0
000006C6 2028 0008 move.l D0, [A0 + 0x8]
000006CA 2228 000C move.l D1, [A0 + 0xC]
000006CE 2428 0010 move.l D2, [A0 + 0x10]
000006D2 2628 0014 move.l D3, [A0 + 0x14]
000006D6 9240 sub.w D1, D0
000006D8 9642 sub.w D3, D2
000006DA 9243 sub.w D1, D3
000006DC E249 lsr D1.w, 1
000006DE 3F01 move.w -[A7], D1
000006E0 4840 swap.w D0
000006E2 4841 swap.w D1
000006E4 4842 swap.w D2
000006E6 4843 swap.w D3
000006E8 9240 sub.w D1, D0
000006EA 9278 0BAA sub.w D1, [0x00000BAA /* MBarHeight */]
000006EE 9278 0BAA sub.w D1, [0x00000BAA /* MBarHeight */]
000006F2 9642 sub.w D3, D2
000006F4 9243 sub.w D1, D3
000006F6 E449 lsr D1.w, 2
000006F8 3001 move.w D0, D1
000006FA E248 lsr D0.w, 1
000006FC D240 add.w D1, D0
000006FE D278 0BAA add.w D1, [0x00000BAA /* MBarHeight */]
00000702 D278 0BAA add.w D1, [0x00000BAA /* MBarHeight */]
00000706 3F01 move.w -[A7], D1
00000708 4267 clr.w -[A7]
0000070A A91B trap MoveWindow
0000070C 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000710 6708 beq +0xA /* 0000071A */
00000712 487A 0018 pea.l [PC + 0x18 /* 0000072C */]
00000716 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000071A:
0000071A 548F addq.l A7, 2
label0000071C:
0000071C 4CDF 030F movem.l A1,A0,D3,D2,D1,D0, [A7]+
00000720 4E5E unlink A6
00000722 2F57 0004 move.l [A7 + 0x4], [A7]
00000726 4FEF 0004 lea.l A7, [A7 + 0x4]
0000072A 4E75 rts
0000072C 8C43 or.w D6, D3
0000072E 454E chk.w D2, A6
00000730 5452 addq.w [A2], 2
00000732 4557 chk.w D2, [A7]
00000734 494E chk.w D4, A6
00000736 444F neg.w A7
00000738 5720 subq.b -[A0], 3
0000073A 0000 082D ori.b D0, 0x2D /* '-' */
export_300: // at 0000073C (misaligned)
0000073E 0000 E6CC ori.b D0, 0xCC
00000742 6700 0060 beq +0x62 /* 000007A4 */
00000746 48E7 E0C0 movem.l -[A7], D0,D1,D2,A0,A1
0000074A 4FEF FFFC lea.l A7, [A7 - 0x4]
0000074E A924 trap FrontWindow
00000750 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000754 6708 beq +0xA /* 0000075E */
00000756 487A 004E pea.l [PC + 0x4E /* 000007A6 */]
0000075A 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000075E:
0000075E 548F addq.l A7, 2
00000760 4FEF FFFC lea.l A7, [A7 - 0x4]
00000764 3F3C 0001 move.w -[A7], 0x1
00000768 4EAD 0A6A jsr [A5 + 0xA6A]
0000076C 221F move.l D1, [A7]+
0000076E B29F cmp.l D1, [A7]+
00000770 6600 002E bne +0x30 /* 000007A0 */
00000774 4A81 tst.l D1
00000776 6700 0028 beq +0x2A /* 000007A0 */
0000077A 2F3C 0000 000C move.l -[A7], 0xC
00000780 42A7 clr.l -[A7]
00000782 42A7 clr.l -[A7]
00000784 3F3C 0020 move.w -[A7], 0x20 /* ' ' */
00000788 4EAD 09FA jsr [A5 + 0x9FA]
0000078C 201F move.l D0, [A7]+
0000078E 670C beq +0xE /* 0000079C */
00000790 486D E96A pea.l [A5 - 0x1696]
00000794 4EAD 0ABA jsr [A5 + 0xABA]
00000798 426D E96E clr.w [A5 - 0x1692]
label0000079C:
0000079C 4EAD 04F2 jsr [A5 + 0x4F2]
label000007A0:
000007A0 4CDF 0307 movem.l A1,A0,D2,D1,D0, [A7]+
label000007A4:
000007A4 4E75 rts
000007A6 8C55 or.w D6, [A5]
000007A8 5044 addq.w D4, 8
000007AA 4154 chk.w D0, [A4]
000007AC 4543 chk.w D2, D3
000007AE 5552 subq.w [A2], 2
000007B0 534F subq.w A7, 1
000007B2 5220 addq.b -[A0], 1
000007B4 0000 3F3C ori.b D0, 0x3C /* '<' */
export_301: // at 000007B6 (misaligned)
000007B8 0080 4EBA 0018 ori.l D0, 0x4EBA0018
000007BE 4E75 rts
000007C0 9053 sub.w D0, [A3]
000007C2 4554 chk.w D2, [A4]
000007C4 4355 chk.w D1, [A5]
000007C6 5253 addq.w [A3], 1
000007C8 4F52 chk.w D7, [A2]
000007CA 544F addq.w A7, 2
000007CC 4152 chk.w D0, [A2]
000007CE 524F addq.w A7, 1
000007D0 5720 subq.b -[A0], 3
000007D2 0000 4E56 ori.b D0, 0x56 /* 'V' */
export_302: // at 000007D4 (misaligned)
000007D6 0000 48E7 ori.b D0, 0xE7
000007DA E0C0 asr .w D0
000007DC 082D 0000 FDC3 btst.b [A5 - 0x23D], 0x0
000007E2 6700 005E beq +0x60 /* 00000842 */
000007E6 41ED E9B2 lea.l A0, [A5 - 0x164E]
000007EA 302D E9B0 move.w D0, [A5 - 0x1650]
000007EE 6716 beq +0x18 /* 00000806 */
000007F0 5340 subq.w D0, 1
000007F2 322E 0008 move.w D1, [A6 + 0x8]
label000007F6:
000007F6 B250 cmp.w D1, [A0]
000007F8 41E8 0006 lea.l A0, [A0 + 0x6]
000007FC 57C8 FFF8 dbeq D0, -0xA /* 000007F6 */
00000800 41E8 FFFA lea.l A0, [A0 - 0x6]
00000804 671E beq +0x20 /* 00000824 */
label00000806:
00000806 2F08 move.l -[A7], A0
00000808 4FEF FFFC lea.l A7, [A7 - 0x4]
0000080C 3F2E 0008 move.w -[A7], [A6 + 0x8]
00000810 AA1B trap GetCCursor
00000812 201F move.l D0, [A7]+
00000814 205F movea.l A0, [A7]+
00000816 30EE 0008 move.w [A0]+, [A6 + 0x8]
0000081A 20C0 move.l [A0]+, D0
0000081C 526D E9B0 addq.w [A5 - 0x1650], 1
00000820 41E8 FFFA lea.l A0, [A0 - 0x6]
label00000824:
00000824 2028 0002 move.l D0, [A0 + 0x2]
00000828 6718 beq +0x1A /* 00000842 */
0000082A 2F00 move.l -[A7], D0
0000082C AA1C trap SetCCursor
0000082E 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000832 6708 beq +0xA /* 0000083C */
00000834 487A 0092 pea.l [PC + 0x92 /* 000008C8 */]
00000838 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000083C:
0000083C 548F addq.l A7, 2
0000083E 6000 0078 bra +0x7A /* 000008B8 */
label00000842:
00000842 4FEF FFFC lea.l A7, [A7 - 0x4]
00000846 3F2E 0008 move.w -[A7], [A6 + 0x8]
0000084A A9B9 trap GetCursor
0000084C 201F move.l D0, [A7]+
0000084E 6612 bne +0x14 /* 00000862 */
00000850 4FEF FFFC lea.l A7, [A7 - 0x4]
00000854 3F2E 0008 move.w -[A7], [A6 + 0x8]
00000858 0457 0080 subi.w [A7], 0x80
0000085C A9B9 trap GetCursor
0000085E 201F move.l D0, [A7]+
00000860 6740 beq +0x42 /* 000008A2 */
label00000862:
00000862 2040 movea.l A0, D0
00000864 A029 trap HLock
00000866 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
0000086A 6708 beq +0xA /* 00000874 */
0000086C 487A 005A pea.l [PC + 0x5A /* 000008C8 */]
00000870 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000874:
00000874 548F addq.l A7, 2
00000876 2F08 move.l -[A7], A0
00000878 2F10 move.l -[A7], [A0]
0000087A A851 trap SetCursor
0000087C 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000880 6708 beq +0xA /* 0000088A */
00000882 487A 0044 pea.l [PC + 0x44 /* 000008C8 */]
00000886 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000088A:
0000088A 548F addq.l A7, 2
0000088C 205F movea.l A0, [A7]+
0000088E A02A trap HUnlock
00000890 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000894 6708 beq +0xA /* 0000089E */
00000896 487A 0030 pea.l [PC + 0x30 /* 000008C8 */]
0000089A 4EAD 0CD2 jsr [A5 + 0xCD2]
label0000089E:
0000089E 548F addq.l A7, 2
000008A0 6016 bra +0x18 /* 000008B8 */
label000008A2:
000008A2 486D FF90 pea.l [A5 - 0x70]
000008A6 A851 trap SetCursor
000008A8 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
000008AC 6708 beq +0xA /* 000008B6 */
000008AE 487A 0018 pea.l [PC + 0x18 /* 000008C8 */]
000008B2 4EAD 0CD2 jsr [A5 + 0xCD2]
label000008B6:
000008B6 548F addq.l A7, 2
label000008B8:
000008B8 4CDF 0307 movem.l A1,A0,D2,D1,D0, [A7]+
000008BC 4E5E unlink A6
000008BE 2F57 0002 move.l [A7 + 0x2], [A7]
000008C2 4FEF 0002 lea.l A7, [A7 + 0x2]
000008C6 4E75 rts
000008C8 8B4D 5953 pack -[A5], -[A5], 0x5953
000008CC 4554 chk.w D2, [A4]
000008CE 4355 chk.w D1, [A5]
000008D0 5253 addq.w [A3], 1
000008D2 4F52 chk.w D7, [A2]
000008D4 0000 .incomplete